/*
 * Copyright (C) 2007 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.example.android.apis.view;

import com.example.android.google.apis.R;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapView.LayoutParams;  
import android.view.View;
import android.widget.LinearLayout;
import com.google.android.maps.MapView;
import com.google.android.maps.MapController;
import com.google.android.maps.MyLocationOverlay;
import com.google.android.maps.Overlay;
import com.google.android.maps.GeoPoint;
import android.graphics.Canvas;
import android.graphics.Point;
import android.os.Bundle;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.hardware.SensorListener;
import android.hardware.SensorManager;

import java.util.List;



public class MapViewDemo extends MapActivity {

	private MyLocationOverlay myLocationOverlay; 
	private SensorManager mSensorManager;
	private MapView mMapView;
    	    	
    @Override
    public void onCreate(Bundle savedInstanceState) {
    	
    	mSensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);              
        MapView mMapView = (MapView)  findViewById(R.id.mapView);
        MyLocationOverlay myLocationOverlay = new MyLocationOverlay(this, mMapView);
        mMapView.getOverlays().add(myLocationOverlay);
        myLocationOverlay.enableMyLocation();
  
    
    
    
    
    }

    @Override
    protected boolean isRouteDisplayed() { return false; }
    
    @Override
    protected boolean isLocationDisplayed() {
         return true;
}}

